// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:53:56


// Source File Name:   j3.java

package com.zelix;

import java.awt.*;
import java.awt.event.*;
import java.io.File;
import java.util.*;
import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;


//            a3, eo, zo, as, 
//            to, yw, ax, f2, 
//            o4, v3, zz, q4, 
//            m4, qz, tz, j0, 
//            tb

class j3 extends a3
    implements eo, ListSelectionListener, ActionListener, KeyListener
{

    String f;
    yw g;
    as h;
    private HashMap i;
    JLabel j;
    v3 k;
    private DefaultListModel l;
    JButton m;
    JButton n;
    JButton o;
    JButton p;
    JButton q;
    JButton r;
    JButton s;
    boolean t;
    private static String u = "cL'c\025{\0033e\016XD:x\b2O*b7fI*dJ;\006l9[cL'c\025{\0033e\016GH7k\b{\020l9P4A7\177\024_C2\"\024`]c9[cD-x0aAp`\005iYc9[cD-x0aAp~\thE*1\003`C*m\taH,\"\022fJ6xM:\0262e\023{}0`NmB*x\017b\020=c\016{L7b\005}\003<c\024{B3!\002{C\026i\thE*!R?\026";
    private static String v = z(z("mY0D\005fJ6x]bL&$\017do*bNkH8m\025cY\026i\thE* @lL0o\005co*bNkH8m\025cY\026i\thE* @gH2|\"{Cph\005iL+`\024GH7k\b{\004en\024az7h\024g\0203m\030'B5N\024a\003:i\006nX2x7fI*dL/N?b\003jA\034x\016!I;j\001zA*[\tkY6 @gH2|\"{Cph\005iL+`\024XD:x\b&\0261g\"{Cpo\005aY;~82N1b\024nD0i\022!Z7h\024g\007o:O>\035n7\017do*bNmB*x\017b\020<c\024{B31\003`C*m\taH,\"\002`Y*c\r\"\034n7\017do*bNgH7k\b{\020<x\016GH7k\b{\0261g\"{Cp{\tkY61\002{C\te\004{Eeo\001aN;`\"{Cpo\005aY;~82N1b\024nD0i\022!Z7h\024g\007k<O>\035n7\003nC=i\fMY0\"\024`]cc\013MY0\"\024`]eo\001aN;`\"{Cpd\005fJ6x]mY0D\005fJ6x[lL0o\005co*bNxD:x\b2O*b7fI*d[gH2|\"{Cpo\005aY;~82N1b\024nD0i\022!Z7h\024g\007f8O>\035n7\bjA.N\024a\003*c\0202B5N\024a\003*c\0204E;`\020MY0\"\bjD9d\0242O*b(jD9d\0244E;`\020MY0\"\027fI*d]mY0[\tkY6"));
    private static String w[];
    private static String z[];

    j3(JFrame jframe, String s1, String s2, String s3, String s4, String s5, as as1, 
            yw yw1)
    {
        super(jframe, s1, s2, s3, s4, s5);
        f = s2;
        g = yw1;
        h = as1;
        g();
        zz.b(q);
    }

    public void actionPerformed(ActionEvent actionevent)
    {
label0:
        {
            boolean flag = tb.b;
            Object obj = actionevent.getSource();
            if(obj == n)
            {
                n();
                if(!flag)
                    break label0;
            }
            if(obj == o)
            {
                o();
                if(!flag)
                    break label0;
            }
            if(obj == p)
            {
                j();
                if(!flag)
                    break label0;
            }
            if(obj == m)
            {
                i();
                if(!flag)
                    break label0;
            }
            if(obj == q)
            {
                m();
                if(!flag)
                    break label0;
            }
            if(obj == r)
            {
                f();
                if(!flag)
                    break label0;
            }
            if(obj == s)
                l();
        }
    }

    private boolean b(String s1)
    {
        boolean flag;
label0:
        {
            File file = new File(s1);
            Object obj = i.put(s1, file);
            flag = obj == null;
            if(flag)
            {
                l.addElement(file);
                k.setSelectedIndex(l.getSize() - 1);
                k.ensureIndexIsVisible(l.getSize() - 1);
                if(!tb.b)
                    break label0;
            }
            int i1 = l.indexOf(file);
            k.setSelectedIndex(i1);
            k.ensureIndexIsVisible(i1);
        }
        return flag;
    }

    void i()
    {
        m4 m4_1;
        int i1;
        boolean flag;
        flag = tb.b;
        qz aqz[] = {
            new tz()
        };
        m4_1 = new m4(new File(zo.h), true, 3, aqz, 0, false);
        i1 = m4_1.a(this, z[6]);
        if(i1 != 1) goto _L2; else goto _L1
_L1:
        File afile[];
        int j1;
        afile = m4_1.f();
        j1 = 0;
        if(!flag) goto _L4; else goto _L3
_L3:
        File file = afile[j1];
        String s1 = file.getAbsolutePath();
        if(file.exists())
        {
            if(!b(s1))
                continue; /* Loop/switch isn't completed */
            k();
            if(!flag)
                continue; /* Loop/switch isn't completed */
        }
        new f2(this, z[4], "'" + s1 + z[5]);
        if(!flag)
            break; /* Loop/switch isn't completed */
        j1++;
_L4:
        if(j1 < afile.length) goto _L3; else goto _L2
_L2:
    }

    protected void f()
    {
        t = true;
        a();
        g.a();
    }

    public void a()
    {
        super.a();
        if(!t)
            g.a();
    }

    void j()
    {
        int i1 = k.getSelectedIndex();
        Object obj = l.getElementAt(i1 + 1);
        l.setElementAt(l.getElementAt(i1), i1 + 1);
        l.setElementAt(obj, i1);
        k.setSelectedIndex(i1 + 1);
        k.ensureIndexIsVisible(i1 + 1);
        k();
    }

    private void k()
    {
        boolean flag;
label0:
        {
            flag = tb.b;
            int i1 = l.getSize();
            int j1 = k.getSelectedIndex();
            if(j1 == -1)
            {
                n.setEnabled(false);
                o.setEnabled(false);
                p.setEnabled(false);
                if(!flag)
                    break label0;
            }
            n.setEnabled(true);
            o.setEnabled(j1 > 0);
            p.setEnabled(i1 - 1 > j1);
        }
label1:
        {
            if(o.hasFocus())
            {
                if(o.isEnabled())
                    break label1;
                if(p.isEnabled())
                {
                    zz.b(p);
                    if(!flag)
                        break label1;
                }
                zz.b(m);
                if(!flag)
                    break label1;
            }
            if(!p.hasFocus() || p.isEnabled())
                break label1;
            if(o.isEnabled())
            {
                zz.b(o);
                if(!flag)
                    break label1;
            }
            zz.b(m);
        }
    }

    protected void l()
    {
        to.a(to.z);
    }

    boolean a(String s1, Enumeration enumeration)
    {
        ax ax1 = new ax(s1, zo.o);
        if(ax1.c())
        {
            new f2(this, z[0], ax1.b());
            return false;
        }
        while(enumeration.hasMoreElements()) 
            if(zo.c(((File)enumeration.nextElement()).getAbsolutePath()))
                return true;
        new f2(this, z[3], z[1] + zo.l + z[2]);
        return false;
    }

    public void keyPressed(KeyEvent keyevent)
    {
label0:
        {
            boolean flag = tb.b;
            Object obj = keyevent.getSource();
            if(keyevent.getKeyCode() == 10)
            {
                if(obj == n)
                {
                    n();
                    if(!flag)
                        break label0;
                }
                if(obj == o)
                {
                    o();
                    if(!flag)
                        break label0;
                }
                if(obj == p)
                {
                    j();
                    if(!flag)
                        break label0;
                }
                if(obj == m)
                {
                    i();
                    if(!flag)
                        break label0;
                }
                if(obj == q)
                {
                    m();
                    if(!flag)
                        break label0;
                }
                if(obj == r)
                {
                    f();
                    if(!flag)
                        break label0;
                }
                if(obj != s)
                    break label0;
                l();
                if(!flag)
                    break label0;
            }
            if(keyevent.getKeyCode() == 127 && obj == k)
                n();
        }
    }

    public void keyReleased(KeyEvent keyevent)
    {
    }

    public void keyTyped(KeyEvent keyevent)
    {
    }

    final void m()
    {
        int i1;
        StringBuffer stringbuffer;
        int j1;
        boolean flag;
        flag = tb.b;
        i1 = l.getSize();
        stringbuffer = new StringBuffer();
        j1 = 0;
        if(!flag) goto _L2; else goto _L1
_L1:
label0:
        {
            File file = (File)l.getElementAt(j1);
            if(!file.isAbsolute())
            {
                stringbuffer.append(file.getPath().trim());
                if(!flag)
                    break label0;
            }
            stringbuffer.append(file.getAbsolutePath().trim());
        }
        if(j1 < i1 - 1)
            stringbuffer.append(zo.c);
        j1++;
_L2:
        if(j1 >= i1)
        {
            String s1 = stringbuffer.toString();
            if(f.equals(s1) || a(s1, l.elements()))
            {
                if(!f.equals(s1))
                    c(s1);
                t = true;
                a();
                g.a(s1, new Integer(1));
            }
            return;
        }
        if(true) goto _L1; else goto _L3
_L3:
    }

    void n()
    {
label0:
        {
            boolean flag = tb.b;
            int i1 = l.getSize();
            int j1 = k.getSelectedIndex();
            if(j1 > -1)
            {
                i.remove(((File)l.get(j1)).getAbsolutePath());
                l.removeElementAt(j1);
            }
            if(i1 - 2 >= j1)
            {
                k.setSelectedIndex(j1);
                if(!flag)
                    break label0;
            }
            if(i1 - 2 >= 0)
            {
                k.setSelectedIndex(i1 - 2);
                if(!flag)
                    break label0;
            }
            zz.b(m);
        }
        k();
    }

    void c(String s1)
    {
        h.c(s1);
        h.l();
    }

    protected void a(Object obj, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6)
    {
        String s1;
        String s3;
        String s4;
        Container container;
        j0 j0_1;
        o4 o4_1;
        j0 j0_2;
        boolean flag;
        flag = tb.b;
        i = new HashMap();
        s1 = (String)obj;
        String s2 = (String)obj1;
        s3 = (String)obj2;
        s4 = (String)obj3;
        container = getContentPane();
        j0_1 = new j0(container);
        container.setLayout(j0_1);
        o4_1 = new o4(false, true, 5, 5);
        j0_2 = new j0(o4_1);
        o4_1.setLayout(j0_2);
        j = new JLabel(s2);
        o4_1.add(j, z[16]);
        k = new v3(new DefaultListModel());
        l = (DefaultListModel)k.getModel();
        if(s1 == null) goto _L2; else goto _L1
_L1:
        StringTokenizer stringtokenizer = new StringTokenizer(s1, zo.c);
        if(!flag) goto _L4; else goto _L3
_L3:
        String s5 = stringtokenizer.nextToken();
        b(s5);
_L4:
        if(stringtokenizer.hasMoreTokens()) goto _L3; else goto _L2
_L2:
        o4_1.add(new q4(k), z[11]);
        k.setSelectionMode(0);
        m = new JButton(z[15]);
        m.setToolTipText(to.b(to.Ib));
        o4_1.add(m, z[10]);
        n = new JButton(z[12]);
        n.setToolTipText(to.b(to.Fb));
        o4_1.add(n, z[9]);
        o = new JButton(z[14]);
        o.setToolTipText(to.b(to.Gb));
        o4_1.add(o, z[7]);
        p = new JButton(z[17]);
        p.setToolTipText(to.b(to.Hb));
        o4_1.add(p, z[8]);
        j0_2.a(w);
        container.add(o4_1, z[13]);
        k.addListSelectionListener(this);
        k.addKeyListener(this);
        n.addActionListener(this);
        o.addActionListener(this);
        p.addActionListener(this);
        m.addActionListener(this);
        n.addKeyListener(this);
        o.addKeyListener(this);
        p.addKeyListener(this);
        m.addKeyListener(this);
        k();
        StringBuffer stringbuffer = new StringBuffer(u);
        a(s3, s4, stringbuffer, container);
        j0_1.e(stringbuffer.toString());
        setIconImage(zo.a(this));
        zz.a(this);
        return;
    }

    void a(String s1, String s2, StringBuffer stringbuffer, Container container)
    {
        q = new JButton(s1);
        q.setToolTipText(s2);
        container.add(q, z[21]);
        r = new JButton(z[22]);
        r.setToolTipText(to.b(to.Z));
        container.add(r, z[20]);
        s = new JButton(z[19]);
        s.setToolTipText(to.b(to.ab));
        container.add(s, z[18]);
        q.addKeyListener(this);
        r.addKeyListener(this);
        s.addKeyListener(this);
        q.addActionListener(this);
        r.addActionListener(this);
        s.addActionListener(this);
        stringbuffer.append(v);
    }

    void o()
    {
        int i1 = k.getSelectedIndex();
        Object obj = l.getElementAt(i1 - 1);
        l.setElementAt(l.getElementAt(i1), i1 - 1);
        l.setElementAt(obj, i1);
        k.setSelectedIndex(i1 - 1);
        k.ensureIndexIsVisible(i1 - 1);
        k();
    }

    public void valueChanged(ListSelectionEvent listselectionevent)
    {
        if(listselectionevent.getValueIsAdjusting())
        {
            return;
        } else
        {
            k();
            return;
        }
    }

    private static char[] z(String str) {
        char ac[] = str.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x60;
        return ac;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key =0xf;
                    break;
                case 1:
                    key =45;
                    break;
                case 2:
                    key =94;
                    break;
                case 3:
                    key =12;
                    break;
                default:
                    key =96;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        String as1[] = new String[23];
        as1[0] = z(z("FC(m\ffI~o\fn^-|\001{E"));
        as1[1] = z(z("AB~|\001{E~x\017/G?z\001!A?b\007!b<f\005lYp,HAB*i@{E?x@lX,~\005aY~+\nn[?\"\b`@;+@f^~+"));
        as1[2] = z(z("(\004"));
        as1[3] = z(z("FC=c\r\177A;x\005/N2m\023|]?x\b"));
        as1[4] = z(z("ID2i@J_,c\022"));
        as1[5] = z(z("(\r:c\005|\r0c\024/H&e\023{"));
        as1[6] = z(z("LA?\177\023\177L*d"));
        as1[7] = z(z("z]\034x\016"));
        as1[8] = z(z("kB)b\"{C"));
        as1[9] = z(z("}H3c\026jo*b"));
        as1[10] = z(z("m_1{\023jo*b"));
        as1[11] = z(z("\177L*d,|Y"));
        as1[12] = z(z("]H3c\026j"));
        as1[13] = z(z("cD-x0aA"));
        as1[14] = z(z("BB(i@Z]"));
        as1[15] = z(z("NI:"));
        as1[16] = z(z("b^9@\002c"));
        as1[17] = z(z("BB(i@KB)b"));
        as1[18] = z(z("gH2|\"{C"));
        as1[19] = z(z("GH2|"));
        as1[20] = z(z("lL0o\005co*b"));
        as1[21] = z(z("`F\034x\016"));
        as1[22] = z(z("LL0o\005c"));
        z = as1;
        String as2[] = new String[22];
        as2[0] = z(z("z].i\022MY0[\tkY61\rnUvn\022`Z-i\"{Cph\005iL+`\024XD:x\b#\r,i\r`[;N\024a\003:i\006nX2x7fI*dL/X.N\024a\003:i\006nX2x7fI*dL/I1{\016MY0\"\004jK?y\f{z7h\024g\004"));
        as2[1] = z(z("b^9@\002c\003*c\0202\037"));
        as2[2] = z(z("b^9@\002c\0032i\006{\020k"));
        as2[3] = z(z("b^9@\002c\003,e\007gYco\017aY?e\016j_p~\thE*!U"));
        as2[4] = z(z("\177L*d,|Yp`\005iYc9"));
        as2[5] = z(z("\177L*d,|Yp~\thE*1\003`C*m\taH,\"\022fJ6xMz].i\022MY0[\tkY6!Q?"));
        as2[6] = z(z("\177L*d,|Ypx\017\177\0203\177\007CO2\"\002`Y*c\r$\037"));
        as2[7] = z(z("\177L*d,|Ypn\017{Y1a]lB0x\001fC;~NmB*x\017b\000k"));
        as2[8] = z(z("m_1{\023jo*bNcH8x]\177L*d,|Yp~\thE*'U"));
        as2[9] = z(z("m_1{\023jo*bN}D9d\0242N1b\024nD0i\022!_7k\b{\000k"));
        as2[10] = z(z("m_1{\023jo*bNmB*x\017b\020,i\r`[;N\024a\003*c\020\"\036"));
        as2[11] = z(z("m_1{\023jo*bNxD:x\b2X.|\005}o*b7fI*d"));
        as2[12] = z(z("}H3c\026jo*bNcH8x]\177L*d,|Yp~\thE*'U"));
        as2[13] = z(z("}H3c\026jo*bN}D9d\0242N1b\024nD0i\022!_7k\b{\000k"));
        as2[14] = z(z("}H3c\026jo*bNmB*x\017b\020+|\"{Cpx\017\177\000o<"));
        as2[15] = z(z("}H3c\026jo*bNxD:x\b2X.|\005}o*b7fI*d"));
        as2[16] = z(z("z]\034x\016!_7k\b{\020=c\016{L7b\005}\003,e\007gYs9"));
        as2[17] = z(z("z]\034x\016!Y1|]\177L*d,|Ypo\005aY;~9$\030"));
        as2[18] = z(z("z]\034x\016!Z7h\024g\020+|\020j_\034x\016XD:x\b"));
        as2[19] = z(z("kB)b\"{Cp~\thE*1\003`C*m\taH,\"\022fJ6xM:"));
        as2[20] = z(z("kB)b\"{Cp{\tkY61\025\177];~\"{C\te\004{E"));
        as2[21] = z(z("kB)b\"{Cpx\017\177\020+|\"{Cpn\017{Y1aK<"));
        w = as2;
    }
}